<%--
	author:chengd
	time:2012/6/30 14:45:36
--%>



<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %>
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>修改</title>
	<%@include file="/commons/include/upd.jsp" %>
<style type="text/css">
label.error { color:#F00; }
</style>
<script type="text/javascript" src="${ctx}/js/calendar/date.js"></script>
<script type="text/javascript">
$(function(){
	
	jQuery("#dataForm").validate(
	{
		rules: {
			acc_period:{
				required: true
			},
			custom_code:{
				required: true
			},
			sell_line_code:{
				required: true
			},
			pre_money:{
				required: true,
				number : true
			},
			debit_money:{
				required: true,
				number : true
			},
			credit_money:{
				required: true,
				number : true
			},
			bal_money:{
				required: true,
				number : true
			}
		},
		messages: {
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
	selectDateMonth($("#acc_period_panel"), $("#acc_period"));
});
_callback = function() {
	location.href = ctx + "/manage/finance/getSellCashAcc.htm";
}
validCallBack = function()
{
	//添加页面自定义校验

	return true;
};
	</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">销售应收帐修改</td>
		<td>
			<div class="menuTool">
				<a class="save" id="dataFormSave" href="#">保存</a>
				<a class="back" href="getSellCashAcc.htm">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataForm" method="post" action="updSellCashAcc2.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr>
		<td class="form_title">财务核算期：</td>
		<td class="form_input"><input type="hidden" id="acc_period" name="acc_period" value="${fn:escapeXml(po.acc_period)}" /><div id="acc_period_panel" style="width:120px; float:left;"></div></td>
	</tr>
	<tr>
		<td class="form_title">客户代码：</td>
		<td class="form_input"><input type="text" id="custom_code" name="custom_code" value="${fn:escapeXml(po.custom_code)}" /></td>
	</tr>
	<tr>
		<td class="form_title">销售业务线路：</td>
		<td class="form_input"><input type="text" id="sell_line_code" name="sell_line_code" value="${fn:escapeXml(po.sell_line_code)}" /></td>
	</tr>
	<tr>
		<td class="form_title">上期金额：</td>
		<td class="form_input"><input type="text" id="pre_money" name="pre_money" value="${fn:escapeXml(po.pre_money)}" /></td>
	</tr>
	<tr>
		<td class="form_title">借方金额：</td>
		<td class="form_input"><input type="text" id="debit_money" name="debit_money" value="${fn:escapeXml(po.debit_money)}" /></td>
	</tr>
	<tr>
		<td class="form_title">贷方金额：</td>
		<td class="form_input"><input type="text" id="credit_money" name="credit_money" value="${fn:escapeXml(po.credit_money)}" /></td>
	</tr>
	<tr>
		<td class="form_title">本存金额：</td>
		<td class="form_input"><input type="text" id="bal_money" name="bal_money" value="${fn:escapeXml(po.bal_money)}" /></td>
	</tr>
</table>
<input type="hidden" name="id" value="${po.id}" />
</form>
</body>
</html>
